<?php

class PlainText extends FormElement {

	/**
	 * Contains the label title
	 *
	 * @var String
	 * @var Array - Containing option like classname etc..
	 */
//	private $label;

	/**
	 * Constructor for the Other class, passes variables to the FormElement constructor.
	 *
	 * @param String $other
	 */
	public function __construct( $label,array $properties = array() )
	{
		parent::__construct( "", $properties );
		$this->label = $label;
		$this->setProperties($properties);
		
	}

	/**
	 * @see FormElement::__toString()
	 */
	public function __toString() {
		return '<div class="form plaintext"><p class="'.$this->getProperty("class").'">' . $this->label . '</p></div>';
	}
}

